package com.kun.cmd.service;

import cn.hutool.http.HttpResponse;
import com.baomidou.mybatisplus.extension.service.IService;
import com.kun.model.entity.cmn.Dict;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;

/**
 * @Author zhoukun
 * @Date 2021/4/6 21:38
 */
public interface DictService extends IService<Dict> {
    List<Dict> findChildDataById(Long id);//查询数据字典所有数据

    void exportDict(HttpServletResponse response) throws IOException;//导出

    void importDict(MultipartFile file);//导入

    String getDictName(String value);

    /**
     * 根据dictCode获取下级节点
     * @param dictCode
     * @return
     */
    List<Dict> findByDictCode(String dictCode);
}
